{{define "header"}}
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport"
              content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
        <script src="/static/layui/layui.js" charset="utf-8"></script>
        <script src="/static/js/jquery-3.3.1.min.js"></script>
        <script src="/static/js/common.js" charset="utf-8"></script>
        <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
        <link rel="stylesheet" href="/static/layuiadmin/style/admin.css" media="all">
        <title>{{.title}}</title>
    </head>
    <body class="layui-layout-body">

    <div id="LAY_app">
        <div class="layui-layout layui-layout-admin">
            <!-- 侧边菜单 -->
            <div class="layui-side layui-side-menu">
                <div class="layui-side-scroll">
                    <div class="layui-logo">
                        <span>菜单</span>
                    </div>

                    <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu"
                        lay-filter="layadmin-system-side-menu">
                        <li data-name="menu2" class="layui-nav-item layui-nav-itemed">
                            <a href="javascript:;" lay-tips="图书项目信息管理" lay-direction="2">
                                <i class="layui-icon layui-icon-home"></i>
                                <cite>图书项目信息管理</cite>
                            </a>
                            <dl class="layui-nav-child">
                                <dd data-name="console">
                                    <a href="/book/create">新增</a>
                                </dd>
                                <dd data-name="console">
                                    <a href="/book/list?Stage=1">排版书稿列表</a>
                                </dd>
                                <dd data-name="console">
                                    <a href="/book/list?Stage=2">排版完成书稿列表</a>
                                </dd>
                                {{if eq .user.Role  1}}
                                    <dd data-name="console">
                                        <a href="/book/list?Stage=3">填报完成书稿列表</a>
                                    </dd>
                                    <dd data-name="console">
                                        <a href="/book/list?Stage=4">结账完成书稿列表</a>
                                    </dd>
                                    <dd data-name="console">
                                        <a href="/book/all">备份书稿</a>
                                    </dd>
                                {{end}}
                            </dl>
                        </li>
                        <li data-name="menu2" class="layui-nav-item layui-nav-itemed">
                            <a href="javascript:;" lay-tips="图书项目信息管理" lay-direction="2">
                                <i class="layui-icon layui-icon-home"></i>
                                <cite>个人信息</cite>
                            </a>
                            <dl class="layui-nav-child">
                                <dd data-name="console">
                                    <a href="/user/changePassword">修改密码</a>
                                </dd>
                                {{if eq .user.Role  1}}
                                    <dd data-name="console">
                                        <a href="/user/create">新操作员</a>
                                    </dd>
                                    <dd data-name="console">
                                        <a href="/user/list">操作员</a>
                                    </dd>
                                {{end}}
                                <dd data-name="console">
                                    <a href="/logout">退出</a>
                                </dd>
                            </dl>
                        </li>
                    </ul>
                </div>
            </div>
            <!-- 主体内容 -->
            <div class="layui-body" id="LAY_app_body">
                <div class="layadmin-tabsbody-item layui-show" style="height: auto">
{{end}}